def describe_pet (animal_type, pet_name):
    """ 显示宠物信息 """
    print("\nI have a " + animal_type + '.')
    print("My " + animal_type + "'s name is " + pet_name.title() + '.')

describe_pet('hamster', 'harry')

def description_pet (pet_name, animal_type = 'dog'):
    """ show animal information """
    print("\nI have a " + animal_type + '.')
    print("My " + animal_type + "'s name is " + pet_name.title() + '.')


description_pet(pet_name = 'whiles')

def description_pet_params (params):
    """ show animal information """
    print("\nI have a " + params['animal_type'] + '.')
    print("My " + params['animal_type'] + "'s name is " + params['pet_name'].title() + '.')

description_pet_params({'pet_name': 'dog', 'animal_type': 'dog'})